package com.xiaomitest;

import java.util.Scanner;

// 队伍排名
public class TeamRank {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            int n = sc.nextInt();
            int m = sc.nextInt();
            int[] team = new int[n];
            for (int i = 0; i < m; i++) {
               int pre = sc.nextInt();
               int nex = sc.nextInt();
               team[nex] = pre;
            }

        }

    }
}
